# ========= 自动化部署生产运行阶段 ===========
FROM nginx:alpine
# 拷贝构建产物到 nginx 的默认目录
COPY dist /usr/share/nginx/html
# 拷贝 nginx 配置
COPY docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf
# 暴露端口
EXPOSE 80
# 启动 nginx
CMD ["nginx", "-g", "daemon off;"]
